home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
Other Langs
/
Tickle-4.0 (tcl)
/
WorkSheet
< prev
next >
Wrap
Text File
|
1993-11-05
|
2KB
|
56 lines
###
### This is the distribution Worksheet. It will
### step you through a few things to get you
### started.
###
### These lines that begin with the '#' character
### are "comments" to the tcl interpretter, so the
### interpretter will ignore these lines if it sees
### them.
###
### This window is a "tickle window" and it has one
### feature that normal text windows lack -- it has
### a tcl interpretter "attached" to it. That means
### that is becomes a tcl worksheet for you. In fact
### *any* text window that you open in Tickle is a
### "tickle window" and contains a tcl interpretter.
###
### To cause the tcl interpretter in your window to
### execute some tcl code, you simply select the text
### you want executed and press Enter (or Apple-Return).
### This will feed the code into the interpretter and
### paste the results of the interpretation into the
### window right after the selection. To see this,
### select text in the line after this comment and
### press the Enter key to see its results:
puts stdout "Hello, this is Tickle!"
### Very good! You just ran a tcl script that printed
### a simple message. Not select the line after this
### comment and press Enter and get a file listing:
ls -CF
###
### There is a great deal of online help. Each of
### the commands below will open a new window showing
### you some of this help. Remember to close these
### windows when you are done reading them so that you
### do not create too many windows!
###
help help
help tcl
help tcl:control
help tcl:control:for
### If you wish to run the standard tcl test suite
### (with modifications) select the next two lines
### press the "Enter" key.
cd :tcl:tests
source all
### Now read the manuals...